package com.yanqu.road.server.gameplayer.module.cricket.service;

import com.google.protobuf.InvalidProtocolBufferException;
import com.yanqu.road.pb.cricket.CricketProto;
import com.yanqu.road.pb.syncMessage.SyncMessage;
import com.yanqu.road.server.game.service.IGameServiceCommand;
import com.yanqu.road.server.gameplayer.module.cricket.CricketMgr;
import com.yanqu.road.sync.message.SyncResponse;

public class CricketDefendHandleBattleLogServiceCmd implements IGameServiceCommand {
    @Override
    public SyncResponse execute(SyncMessage.Request request) throws InvalidProtocolBufferException {
        SyncResponse syncResponse = new SyncResponse();
        CricketProto.CricketDefendBattleLogReqMsg reqMsg = CricketProto.CricketDefendBattleLogReqMsg.parseFrom(request.getDataBytes());
        CricketMgr.receiveDefendBattleLog(reqMsg);
        return syncResponse;
    }
}
